﻿<%@ Page Title="现场主机实时监控数据" Language="C#" MasterPageFile="~/Web/Main.Master" AutoEventWireup="true" CodeBehind="groupPage.aspx.cs" Inherits="BOMS.WebUI.Web.RealStatus.groupPage" %>
<%@ Import Namespace="BOMS.WebUI.Web" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type ="text/javascript">
$(document).ready(function () {
    setInterval("startRequest()",<%=Common.RefreshIntev%>);
});
function startRequest() {
    $("#grpisonline").load(location.href + " #grpisonline>*", "" + Math.random() + "");
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="gv" id="grpisonline">
    <div class="gvtop"><span><%=LanName%>现场主机实时监控数据</span></div>
    <asp:GridView ID="GridView_wince" runat="server" AutoGenerateColumns="False" DataKeyNames="Mac"
        onrowcommand="GridView_wince_RowCommand" 
        onrowdatabound="GridView_wince_RowDataBound" GridLines="None"
            CssClass="gvstyle" HorizontalAlign="Center" CellSpacing="1" 
        width="100%" AllowSorting="True" onsorting="GridView_wince_Sorting">
        <Columns>
<%--            <asp:BoundField DataField="id" HeaderText="主机序号" /> --%>                    
            <asp:BoundField DataField="HostName" HeaderText="主机标识" 
                SortExpression="HostName" />
            <asp:TemplateField HeaderText="是否在线">
            <ItemTemplate>
                <asp:Literal runat="server" ID="ltrIsOnline"></asp:Literal>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="ip" HeaderText="主机IP" SortExpression="ip" />
            <asp:BoundField DataField="capFree" HeaderText="实际容量(AH)" 
                SortExpression="capFree" />
            <asp:BoundField DataField="HostCapDefault" HeaderText="额定容量(AH)" />
            <asp:BoundField DataField="HostTval" HeaderText="环境温度(℃)" />
            <asp:ButtonField ButtonType="Button" HeaderText="主机详情" Text="查看" CommandName="detail" />
        </Columns>
            <FooterStyle CssClass="FooterStyle" />
            <RowStyle CssClass="gvrowstyle" />
            <EmptyDataRowStyle CssClass="EmptyRowStyle" />
            <PagerStyle CssClass="PagerStyle" />
            <SelectedRowStyle CssClass="SelectedRowStyle" />
            <HeaderStyle CssClass="gvtitle" />
            <EditRowStyle CssClass="EditRowStyle" />
            <AlternatingRowStyle CssClass="gvalternatingrowstyle" />
    </asp:GridView>
</div>
</asp:Content>
